import request from '@/utils/request'

// 查询打印机档案信息列表
export function getPrinterInfoList(params) {
  return request({
    url: '/admin/printer/getPrinterInfoList',
    method: 'get',
    params
  })
}

// 新增/修改打印机档案
export function changePrinterInfo(data) {
  return request({
    url: '/admin/printer/changePrinterInfo',
    method: 'post',
    data
  })
}

// 删除打印机档案信息（逻辑删除）
export function deletePrintInfo(params) {
  return request({
    url: '/admin/printer/deletePrintInfo',
    method: 'post',
    params
  })
}

// 查询云打印机信息列表
export function getCloudPrinterInfoList(params) {
  return request({
    url: '/admin/printer/getCloudPrinterInfoList',
    method: 'get',
    params
  })
}

// 新增/修改云打印机信息
export function changeCloudPrinterInfo(params) {
  return request({
    url: '/admin/printer/changeCloudPrinterInfo',
    method: 'post',
    params
  })
}

// 批量启动/停用云打印机
export function changeCloudPrinterStatus(data) {
  return request({
    url: '/admin/printer/changeCloudPrinterStatus',
    method: 'post',
    data
  })
}

// 异步查询云打印机操作记录
export function getCloudPrinterOperatingRecord(params) {
  return request({
    url: '/admin/printer/getCloudPrinterOperatingRecord',
    method: 'get',
    params
  })
}

// 新增/修改云打印机操作记录
export function changeCloudPrinterOperatingRecord(params) {
  return request({
    url: '/admin/printer/changeCloudPrinterOperatingRecord',
    method: 'post',
    params
  })
}

// 批量删除云打印机操作记录（逻辑删除）
export function deleteCloudPrinterOperatingRecord(params) {
  return request({
    url: '/admin/printer/deleteCloudPrinterOperatingRecord',
    method: 'post',
    params
  })
}
